/* $Id: setpf.c,v 1.6 2007/03/17 20:00:29 sby Exp $ */

#include "dao.h"
  
void
setadir(char *buf, const char *path)
{
  sprintf(buf, "%s/%s", path, ".DIR");
}
void
setafile(char *buf, const char *boardname, const char *fname)
{
  sprintf(buf, BBSHOME "/man/boards/%s/%s", boardname, fname);
}
void
setapath(char *buf, const char *boardname)
{
  sprintf(buf, BBSHOME "/man/boards/%s", boardname);
}
void
setbfile(char *buf, const char *boardname, const char *fname)
{
  sprintf(buf, BBSHOME "/boards/%c/%s/%s", boardname[0], boardname, fname);
}
void                                                          
setbgdir(char *buf, const char *boardname)                                      
{
  sprintf(buf, BBSHOME "/boards/%c/%s/%s", boardname[0], boardname, ".Names");
}
void
setbpath(char *buf, const char *boardname)
{
  sprintf(buf, BBSHOME "/boards/%c/%s", boardname[0], boardname);
}
void
sethomedir(char *buf, const char *userid)
{
  sprintf(buf, BBSHOME "/home/%c/%s/%s", userid[0], userid, ".DIR");
}
void
sethomefile(char *buf, const char *userid, const char *fname)
{
  sprintf(buf, BBSHOME "/home/%c/%s/%s", userid[0], userid, fname);
}
void
sethomeman(char *buf, const char *userid)
{
  sprintf(buf, BBSHOME "/home/%c/%s/%s", userid[0], userid, "man");
}
void
sethomepath(char *buf, const char *userid)
{
  sprintf(buf, BBSHOME "/home/%c/%s", userid[0], userid);
}
